package com.car.controller;

import com.car.entity.plun;
import com.car.service.ICommentService;
import com.car.service.IPlunService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Controller
public class PlunController {
    @Autowired
    @Qualifier(value = "plunService")
    private IPlunService iPlunService;

    @RequestMapping("/PAll")
    public String all(Model model){
        List<plun> all = iPlunService.findAll();
        model.addAttribute("all",all);
        return "/bosssystem/Commentb.jsp";
    }
    @RequestMapping("/hao")
    public String hao(Model model){
        List<plun> status = iPlunService.findStatus();
        model.addAttribute("all",status);
        return "/bosssystem/Commentb.jsp";
    }

    @RequestMapping("/cha")
    public String cha(Model model){
        List<plun> tatus = iPlunService.findtatus();
        model.addAttribute("all",tatus);
        return "/bosssystem/Commentb.jsp";
    }

}
